<!DOCTYPE html>
<html>
<head>
    <link rel="stylesheet" href="main.css">
    <script type="text/javascript" src="core.js"></script>
<!--    <script type="text/javascript" src="jsInterface.js"></script>-->

</head>
<body>

<div>
    <h1>这个是网页：本地调试js to Java 底层驱动的测试页面</h1>
 <button type="button"  onclick="jsToJava()" class="buttonT">JS To Java --》 打开钱箱</button>
    <button type="button"  onclick="collectorLoginSuccess()" class="buttonT">JS To Java --》 业务员登录成功</button>
    <button type="button"  onclick="collectorLogout()" class="buttonT">JS To Java --》 业务员登出成功</button>
</div>
<script>




function myFunction() {
    console.log('myFunction called');
}


<!--function callAndroidFromAddJsObj(){-->
<!--    window.Jsbridge.invoke('firstnotify',JSON.stringify({'sdf':'sdf'}), myFunction );-->

<!--      console.log(   window.Jsbridge.syncInvoke('firstnotify'));-->
<!--}-->

function jsToJava(){
      window.Jsbridge.invoke('openCacheBox',JSON.stringify({'p1-key':'p1-value'}), myFunction );
}

function collectorLoginSuccess(){
      window.Jsbridge.invoke('collectLoginSuccess',JSON.stringify({'p1-key':'p1-value'}));
}

function collectorLogout(){
      window.Jsbridge.invoke('collectLogout',JSON.stringify({'p1-key':'p1-value'}));
}

</script>
</body>
</html>